<%-- 
    Document   : cadastarPerguntas
    Created on : 31/05/2013, 13:14:06
    Author     : Diego
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%
    String raiz = getServletContext().getContextPath();
    if (raiz == null) {
        raiz = "";
    } else {
        raiz = raiz + "/";
    }
%>
<c:import url="Layout/Cabecalho.jsp"></c:import>

    <h1>Cadastro de Perguntas</h1>

    <div>

        <fieldset>  <form action="CadastroDePerguntas" method ="post">
                Tema: <select name="opcao">
                <c:forTokens items="${Opcoes}" delims="," varStatus="id" var="op">
                    <option name="${op}" value="${id.index +1}"><c:out value="${op}"/></option>   
                </c:forTokens>
            </select><br>
            Dificuldade:<select name="dificuldade">
                <option name="Facil" value="0">Facil</option>
                <option name ="Medio" value="1">Medio</option>
                <option name="Dificil" value="2">Dificil</option>
            </select><br>

            Texto pergunta:<input type="text" name="pergunta"/></br>
            Texto letra A:<input type="text" name="A"/></br>
            Texto letra B:<input type="text" name="B"/></br>
            Texto letra C:<input type="text" name="C"/></br>
            Texto letra D:<input type="text" name="D"/></br>
            Texto letra E:<input type="text" name="E"/></br>
          <!--  Texto Alternativa Correta:<input type="text" name="alternativaCerta"/></br> -->
          Alternativa Correta: <select name="alternativaCerta">
              <option value="A">A</option>
              <option value="B">B</option>
              <option value="C">C</option>
              <option value="D">D</option>
              <option value="E">E</option>
          </select>

            <input type="submit" value="Cadastrar Pergunta"/><br>

            <a href="cadastrarTemas.jsp">Inserir um Tema</a>
        </form>
    </fieldset>
    
    <form>
        <button class="btn btn-primary" formaction="<%=raiz%>User/inicialUsuario.jsp">Menu Principal</button>
    </form>
    </div>
    


    <c:import url="Layout/rodape.jsp"></c:import>
